<!DOCTYPE html>
<html lang="en">
{% load static %}
{% include 'ui/header.html' %}

<body>
{% include 'ui/nav-top.html' %}

<div class="container-fluid">
    <div class="row">
          {% include 'ui/nav-left.html' %}
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
             <ol class="breadcrumb">
                  <li><a href="{% url 'ui:task'  %}">任务</a></li>
                  <li><a href="#">关联任务</a></li>
            </ol>
             <h1 class="page-header">{{name}}--关联模块</h1>

             <button type="button" class="btn btn-primary" id="btn-task-new-module">新建关联模块</button>
            <input type="hidden" id="tid" value="{{tid}}" />
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>模块名</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% if ta_module_list %}
                    {% for i in ta_module_list %}
                    <tr id="{{i.id}}" mid="{{i.mid}}">
                        <td>{{i.name}}</td>
                        <td>
                            <input type="button" class="btn btn-lg btn-primary btn-edit" value="编辑">
                            <button  class="btn btn-lg btn-primary btn-del"> 删除</button>
                        </td>
                    </tr>
                    {% endfor %}
                    {% else %}
                    <tr>
                        <td>无数据</td>
                    </tr>
                    {% endif %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{% include 'ui/del.html' %}
{% include 'ui/edit-task-module.html' %}
{% include 'ui/foot.html' %}
<script src=" {% static 'js/common1.js'%}"></script>
<script src="{% static  'js/taskModule1.js' %}"></script>

</body>
</html>